Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Adikteev adapter (PR updated) #3391

Merged
merged 12 commits into from
Mar 24, 2019

Conversation

piotr-yuxuan
Copy link
Contributor

@piotr-yuxuan piotr-yuxuan commented Dec 18, 2018

Type of change

  • Adapter feature update
  • This change affects user-facing APIs or examples documented on http://prebid.org.

Description of change

Test parameters for validating bids

{
    bidder: 'adikteev',
    params: {
       adSpaceId: 5084
    }
}

@mike-chowla
Copy link
Contributor

mike-chowla commented Jan 12, 2019

I'm getting an HTTP 503 back when I tried to test this with your sample page
screen shot 2019-01-11 at 5 25 30 pm

@piotr-yuxuan
Copy link
Contributor Author

@mike-chowla it should be OK and respond with code 200 now. Thanks for your review 🙂

@mike-chowla
Copy link
Contributor

I tried it again I'm still not getting any bid back.

Here's the POST body your adapter is sending:
{ "akPbjsVersion":"1.35.0", "bidRequests":[ { "params":{ "placementId":51901 }, "crumbs":{ "pubcid":"bd0be225-d934-4295-9cf8-87ee393c6a63" }, "sizes":[ [ 300, 250 ], [ 250, 300 ], [ 300, 600 ] ], "bidId":"20264b24e0467f", "bidderRequestId":"1369966f2bf47" } ], "debug":false, "language":"en-US", "refererInfo":{ "referer":"http://mike.pubmatic.com:9999/integrationExamples/gpt/hello_world_adikteev.html", "reachedTop":true, "numIframes":0, "stack":[ "http://mike.pubmatic.com:9999/integrationExamples/gpt/hello_world_adikteev.html" ] }, "deviceInfo":{ "browserWidth":1468, "browserHeight":534, "deviceWidth":1920, "deviceHeight":1080, "documentWidth":1468, "documentHeight":534, "webGL":true }, "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" }

@piotr-yuxuan
Copy link
Contributor Author

piotr-yuxuan commented Feb 1, 2019

My bad @mike-chowla, sorry for the delay. I thought it was only needed to send response code 200 with an (empty) array of bid responses. Now it returns a real bid from our system.

@piotr-yuxuan piotr-yuxuan changed the title Update Adikteev adapter Update Adikteev adapter (update: now receives bids) Feb 8, 2019
@piotr-yuxuan
Copy link
Contributor Author

piotr-yuxuan commented Feb 14, 2019

Hi there,

master has seen quite a lot of changes since this branch has been created two months ago, so tests code got broken. I've had to rebase this branch on upstream master and repair the tests. In addition to that fix, I've added some additional changes we need.

@mike-chowla In order to ease our integration, would you like to review this PR again? It's been some time we haven't heard from you. I'll be more than happy to do whatever is needed to get this PR merged 🙂

Cheers.

Copy link
Contributor

@mike-chowla mike-chowla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No add is rendering with the test parameters due to the bid getting dropped.

Also, please change the PR comments to reflect the correct test parameters (adSpaceId)

modules/adikteevBidAdapter.js Outdated Show resolved Hide resolved
@mike-chowla
Copy link
Contributor

Apologies for the slow response. I've been traveling the last couple of weeks and have gotten behind on my PR reviews

@piotr-yuxuan
Copy link
Contributor Author

Hey! Thank you very much for your reply.

Here is how I test it. I launch gulp serve from commit dcca2b6, then I browse to http://localhost:9999/integrationExamples/gpt/hello_world_adikteev.html and I can see an ad displayed in the page.

screenshot 2019-02-19 at 17 55 07

Chrome network dev tools show there is a call to https://prebid.adikteev.com/api/prebid/bid, and here is the raw response I've just got:

[{"netRevenue":true,"width":300,"currency":"EUR","requestId":"2638a6b3ee42ba","creativeId":41601,"ttl":360,"ad":"<div><img height=\"1\" src=\"https://event-adserver.adikteev.com/api/ad_event.json?ad_space_id=5084&amp;sdk_version=8452&amp;what=on_ad_ready_by_sdk&amp;campaign_id=41601&amp;placement_id=46528&amp;device=351d362a-b9ce-4759-af4e-420870263dae&amp;ip=84.14.114.166\" style=\"display:none;visibility:hidden;\" width=\"1\" /><iframe src=\"https://serve-adserver.adikteev.com/api/prebid/serve?ad_space_id=5084&amp;bid_id=2638a6b3ee42ba&amp;sdk_version=9001&amp;placement_id=46528&amp;creative_id=41601\" style=\"background::transparent;border:0;height:100%;margin:0;overflow::hidden;padding:0;width:100%;\"></iframe></div>","cpm":3.325,"height":250}]

Once formatted it becomes:

[{
  "netRevenue": true,
  "width": 300,
  "currency": "EUR",
  "requestId": "2303a14333cf4f",
  "creativeId": 41601,
  "ttl": 360,
  "ad": "<div><img height=\"1\" src=\"https://event-adserver.adikteev.com/api/ad_event.json?ad_space_id=5084&amp;sdk_version=8452&amp;what=on_ad_ready_by_sdk&amp;campaign_id=41601&amp;placement_id=46528&amp;device=e61b94de-4714-4f57-ab3e-6b83f3669f9c&amp;ip=84.14.114.166\" style=\"display:none;visibility:hidden;\" width=\"1\" /><iframe src=\"https://serve-adserver.adikteev.com/api/prebid/serve?ad_space_id=5084&amp;bid_id=2303a14333cf4f&amp;sdk_version=9001&amp;placement_id=46528&amp;creative_id=41601\" style=\"background::transparent;border:0;height:100%;margin:0;overflow::hidden;padding:0;width:100%;\"></iframe></div>",
  "cpm": 3.325,
  "height": 250
}]

Am I missing something?

@piotr-yuxuan
Copy link
Contributor Author

piotr-yuxuan commented Feb 21, 2019

It seems that adikteev_response.txt content doesn't come from us.

@piotr-yuxuan
Copy link
Contributor Author

Anything I can do to help review this PR? I know it's not enough for this PR to WorkOnMyMachine® 😉 but I'm unsure what I can do more.

@mike-chowla
Copy link
Contributor

I tried this again but still getting no bids back.

Request URL: https://prebid.adikteev.com/api/prebid/bid

Request Body:
adikteev_request.txt

@piotr-yuxuan
Copy link
Contributor Author

OK, I believe I got it. The ad set up for Prebid was restricted in some countries. Please accept my apologies for that! At least it demonstrates we run our actual ad engine and give an actual response, not a canned one 🙂

@mike-chowla
Copy link
Contributor

There's a CORS issue when retreiving the bid:

screen shot 2019-02-26 at 9 03 54 am

@piotr-yuxuan
Copy link
Contributor Author

Well, this error 500 was because of the update of some campaign. Should be alright now.

@piotr-yuxuan
Copy link
Contributor Author

piotr-yuxuan commented Mar 5, 2019

Hey, anything new on here?

I've compiled Prebid on commit 537698d with command gulp build --modules=adikteevBidAdapter and put the prebids.js output file here: https://s3-eu-west-1.amazonaws.com/cdn.adikteev.com/prebid.js.

I've put the integration code page of ./integrationExamples/gpt/hello_world_adikteev.html in a jsFiddle example: https://jsfiddle.net/zu57k1t8/ to figure out whether the current state of code of our system allows for a bid to be won. I run it on Tor to test it from anywhere in the world. Of course, in Tor I allow all JavaScript to run without any restriction.

So far it's been working for the last 7 days. Any feedback on your side?

Cheers.


For the sake of completion, here are:

POST request to https://prebid.adikteev.com/api/prebid/bid

curl 'https://prebid.adikteev.com/api/prebid/bid' -H 'Referer: https://fiddle.jshell.net/' -H 'Origin: https://fiddle.jshell.net' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.0 Safari/537.36' -H 'Content-Type: text/plain' --data-binary '{"akPbjsVersion":"1.35.0","bidRequests":[{"params":{"adSpaceId":5084},"sizes":[[300,250],[250,300],[300,600]],"bidId":"2c59999bf0ef6e","bidderRequestId":"1b34f78400deb2"}],"debug":false,"language":"en-GB","refererInfo":{"referer":"https://jsfiddle.net/","reachedTop":true,"numIframes":1,"stack":["https://jsfiddle.net/","https://fiddle.jshell.net/kx0s3eLa/9/show/"]},"deviceInfo":{"browserWidth":1175,"browserHeight":294,"deviceWidth":2560,"deviceHeight":1440,"documentWidth":1175,"documentHeight":294,"webGL":true},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.0 Safari/537.36"}' --compressed

Beautified response

[
  {
    "netRevenue": true,
    "width": 300,
    "currency": "EUR",
    "requestId": "2c59999bf0ef6e",
    "creativeId": 41601,
    "ttl": 360,
    "ad": "<div><img height=\"1\" src=\"https://event-adserver.adikteev.com/api/ad_event.json?ad_space_id=5084&amp;sdk_version=8452&amp;what=on_ad_ready_by_sdk&amp;campaign_id=41601&amp;placement_id=46528&amp;device=1459c8fa-cc89-4a77-9a64-9d2992aee474&amp;ip=84.14.114.166\" style=\"display:none;visibility:hidden;\" width=\"1\" /><iframe src=\"https://serve-adserver.adikteev.com/api/prebid/serve?ad_space_id=5084&amp;bid_id=2c59999bf0ef6e&amp;sdk_version=8452&amp;placement_id=46528&amp;creative_id=41601\" style=\"background::transparent;border:0;height:100%;margin:0;overflow::hidden;padding:0;width:100%;\"></iframe></div>",
    "cpm": 3.325,
    "height": 250
  }
]

@piotr-yuxuan
Copy link
Contributor Author

Please let me know if you experience any hindrance whilst reviewing this PR, I'll be most glad to help you.

@piotr-yuxuan piotr-yuxuan changed the title Update Adikteev adapter (update: now receives bids) Update Adikteev adapter (PR updated) Mar 5, 2019
@piotr-yuxuan
Copy link
Contributor Author

@mike-chowla 😉

@piotr-yuxuan
Copy link
Contributor Author

up?

@piotr-yuxuan
Copy link
Contributor Author

piotr-yuxuan commented Mar 11, 2019

This PR is tagged with not receiving bids, which prevents it to get merged.

To the best of my knowledge it's been inaccurate for the last 12 days, except for short periods of time when we've deployed and rolled out some parts of our system.

@mike-chowla would you mind check it again? As said in an earlier comment, the integration page code has been put in a jsfiddle and tested on Tor, Firefox (with preset default security settings), and Chrome. The integration page also has been test locally with gulp, then visiting http://localhost:9999.

In all these cases the serving endpoint has been able to receive bids and respond to them, which leads me to think the PR tagging has been inaccurate for some days.

Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piotr-yuxuan Verified bids getting back. Just one minor change in spec files.

test/spec/modules/adikteevBidAdapter_spec.js Outdated Show resolved Hide resolved
Copy link
Contributor

@mike-chowla mike-chowla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremyvdw
Copy link

Hi @mike-chowla,
Thanks for your review.
Adikteev is now rebranded as eMoteev: https://twitter.com/Adikteev/status/1105073414103072769, https://www.linkedin.com/feed/update/urn:li:activity:6511615144966135809

We need to address the change in this PR for it to be relevant.
The following commit will reflect this rebranding, no more changes, as we would like to be merged and deployed ASAP.
Thank you.

PS: @jaiminpanchal27 if the change you requested suits you, would you like to approve it? Thx

@piotr-yuxuan
Copy link
Contributor Author

For the sake of completion:

POST request to https://prebid.emoteev.io/api/prebid/bid

curl 'https://prebid.emoteev.io/api/prebid/bid' -H 'Referer: http://localhost:9999/integrationExamples/gpt/hello_world_emoteev.html' -H 'Origin: http://localhost:9999' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3736.0 Safari/537.36' -H 'Content-Type: text/plain' --data-binary '{"akPbjsVersion":"1.35.0","bidRequests":[{"params":{"adSpaceId":5084},"crumbs":{"pubcid":"6e040aab-46bd-45bc-b898-e1b72b62d75c"},"sizes":[[300,250],[250,300],[300,600]],"bidId":"2988189446fab3","bidderRequestId":"1d9d620ba0fc0c"}],"debug":false,"language":"en-GB","refererInfo":{"referer":"http://localhost:9999/integrationExamples/gpt/hello_world_emoteev.html","reachedTop":true,"numIframes":0,"stack":["http://localhost:9999/integrationExamples/gpt/hello_world_emoteev.html"]},"deviceInfo":{"browserWidth":1440,"browserHeight":150,"deviceWidth":1440,"deviceHeight":900,"documentWidth":1440,"documentHeight":150,"webGL":true},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3736.0 Safari/537.36"}' --compressed

Beautified response

[
  {
    "width": 300,
    "ad": "<div><img height=\"1px\" src=\"https://event-adserver.adikteev.com/api/ad_event.json?ad_space_id=5084&amp;sdk_version=8481&amp;what=on_ad_ready_by_sdk&amp;campaign_id=41601&amp;placement_id=58710&amp;device=1733e013-61aa-4063-b153-10ebdb360654&amp;ip=84.14.114.166\" style=\"display:none;visibility:hidden;\" width=\"1px\" /><iframe src=\"https://serve-adserver.adikteev.com/api/prebid/serve?ad_space_id=5084&amp;uid=136a7411-11a9-441d-a0d8-5c3e120ef0fd&amp;sdk_version=8481&amp;placement_id=58710&amp;creative_id=41601\" style=\"background:transparent;border:0;height:100%;margin:0;overflow:hidden;padding:0;width:100%;\"></iframe></div>",
    "height": 250,
    "currency": "EUR",
    "netRevenue": true,
    "requestId": "2988189446fab3",
    "ttl": 360,
    "cpm": 3.325,
    "creativeId": 41601
  }
]

@mike-chowla mike-chowla merged commit 033e76b into prebid:master Mar 24, 2019
@piotr-yuxuan piotr-yuxuan mentioned this pull request Mar 25, 2019
9 tasks
pycnvr pushed a commit to conversant/Prebid.js that referenced this pull request Apr 4, 2019
Update Adikteev adapter (PR updated)
jacekburys-quantcast pushed a commit to jacekburys-quantcast/Prebid.js that referenced this pull request May 15, 2019
Update Adikteev adapter (PR updated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants